package factory.function;

public class FactoryTest {
    public  static void main(String[] args){
        Factory factory = new AudiFactory();
        System.out.println(factory.getCar().getName());
        factory = new BmwFactory();
        System.out.println(factory.getCar().getName());
    }
}
